/**
 * OpenAction.java
 * @author: liuex
 * 2007-12-28 ����10:15:16
 *
 * note: 
 */
package lex.explorer.file;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.KeyStroke;

import org.lex.explorer.file.AbstractFileAction;
import org.lex.explorer.file.FileExplorer;
import org.lex.explorer.file.PropertiesDialog;

public class PropertiesAction extends AbstractFileAction
{
	public PropertiesAction( FileExplorer fileExplorer )
	{
		super( fileExplorer );
		this.setName( "Properties" );
		this.setAcceleratorKey( KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, KeyEvent.ALT_DOWN_MASK ) );
	}

	@Override
	public void actionPerformed( ActionEvent e )
	{
		PropertiesDialog.showFiles( getRootWindow(), fileExplorer.getSelectedFiles() );
	}
}
